package com.collect.collect.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "接口日志")
@TableName(value = "api_log")
@Data
public class ApiLog {

    @ApiModelProperty("唯一标识")
    private Integer id;

    @ApiModelProperty("接口名")
    private String apiName;

    @ApiModelProperty("细分分类名称")
    private String sonType;

    @ApiModelProperty("医院ID")
    private String hospitalId;

    @ApiModelProperty("医院名称")
    private String hospitalName;

    @ApiModelProperty("是否成功")
    private String isSuccess;

    @ApiModelProperty("创建时间")
    private Date createDate;

    @ApiModelProperty("更新表名")
    private String tableName;

    @ApiModelProperty("原因")
    private String reason;

    public ApiLog(){}

    public ApiLog(String apiName, String sonType,String hospitalId, String hospitalName, String isSuccess,String tableName) {
        this.apiName = apiName;
        this.sonType = sonType;
        this.hospitalId = hospitalId;
        this.hospitalName = hospitalName;
        this.isSuccess = isSuccess;
        this.tableName = tableName;
    }
}
